How to take backup and restore PostgreSQL databases on Linux